#ifndef CARPOS_H
#define CARPOS_H
#include "baseptc.h"
#include "gps.h"
//#include "NetUtil.h"''
namespace protocal{
class ClientPos : public BasePtc
{
public:
    ClientPos()
    {

    }
public:

    //char OdSize[4];
    char Order_ID[10];
    short align;
    GPS  Current_Gps;
 /*
public:
    int recv(int sock)
    {

        char buff[size];
        unsigned int recvsize = 0;
        unsigned int ret = 0;
        while(recvsize < this->size - sizeof(BasePtc))
        {
            ret = read(sock,buff + sizeof(BasePtc) + recvsize,size - recvsize);
            recvsize += ret;
        }
        ClientPos* tmp = (ClientPos*)buff;
        memcpy(this->OdSize,tmp->OdSize,sizeof(this->OdSize));
        memcpy(this->Order_ID,tmp->Order_ID,sizeof(this->Order_ID));
        this->Current_Gps = ntohGPS(tmp->Current_Gps);
        return recvsize;

    };
*/
};
}
#endif // CARPOS_H
